package com.wangyb.wework.service.contact;

import com.ruoyi.common.core.page.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;
import com.wangyb.wework.bo.WwGroupchatQueryBo;
import com.wangyb.wework.entity.contact.WwGroupchat;
import com.wangyb.wework.vo.WwGroupchatVo;
import com.wangyb.wework.wxApi.callback.WxCallbackMsg;
import org.springframework.transaction.annotation.Transactional;

/**
 * 客户群列表Service接口
 * @Author: wangyb
 * @Date: 2021/7/8 10:57 上午
 */
public interface IWwGroupchatService extends IServicePlus<WwGroupchat> {
	TableDataInfo<WwGroupchatVo> index(Long corpId, WwGroupchatQueryBo queryBo);

	void syncGroupchat(Long corpId);

    @Transactional
    void syncGroupchat(Long corpId, String wxChatId);

    void onGroupchatCreate(WxCallbackMsg msg);

	void onGroupchatUpdate(WxCallbackMsg msg);

	void onGroupchatDismiss(WxCallbackMsg msg);
}
